package com.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.gulimall.product.entity.AttrEntity;
import com.gulimall.product.vo.AttrGroupRelationVo;
import com.gulimall.product.vo.AttrRespVo;
import com.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-04-15 13:48:47
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    AttrRespVo getAttrInfo(Long attrId);

    void updatAttr(AttrVo attrVo);

    PageUtils querySearch(Map<String, Object> params, Long catelogId, String saletype);

    List<AttrEntity> getRelationAttr(Long groupId);

    void deleteRelation(AttrGroupRelationVo[] relationEntities);

    PageUtils getNoRelationAttr(Long attrgroupId, Map<String, Object> params);

}

